<template>
  <div class="hello">
    hello
  </div>
</template>

<script>
import axios from 'axios'
export default {
  name: 'HelloWorld',
  props: {
    msg: String
  },
  data () {
    return {
      centents: []
    }
  },
  methods: {
    getuser: function () {
      axios.get('http://localhost:8081/test').then((resule) => {
        this.centents = resule.data
      }).catch((err) => {
        console.log(err)
      })
    }
  },
  mounted () {
    this.getuser()
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h1 {
  background-color: #42b983;
}
h3 {
  margin: 40px 0 0;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  display: inline-block;
  margin: 0 10px;
}

a {
  color: #42b983;
}
</style>
